Skip to content

Update to latest lean#16

Merged
rami3l merged 8 commits into
rami3l:masterfrom
srghma:master
May 30, 2026
Merged

Update to latest lean#16
rami3l merged 8 commits into
rami3l:masterfrom
srghma:master

Conversation

@srghma

@srghma srghma commented May 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@rami3l

rami3l commented May 25, 2026

Copy link
Copy Markdown
Owner

@srghma Thanks a lot for this patch! I'd love to welcome all sorts of updates like this :)

Given that I haven't been involved in Lean 4 since a while ago (having lost most of my time to rustup) and I imagine a lot has changed to the language/libs since back then, I'd like to entrust you with the validity of this PR, as long as the CI passes XD

Comment thread Plfl/More/Inference.lean
intro n ai; is_empty; intro ⟨a, i⟩; apply ai.false; exists a
cases i <;> trivial

def Lookup.lookup (Γ : Context) (x : Sym) : Decidable' (Σ a, Γ ∋ x ⦂ a) := by

@rami3l rami3l May 25, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer keeping the last commit in a different PR from this one, since it seems to be working on a separate topic?

Comment thread Plfl/Untyped/Denotational.lean Outdated
Comment thread Plfl/Untyped/Denotational.lean
Comment thread Plfl/Lambda.lean Outdated
@srghma

srghma commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

@rami3l done

@rami3l rami3l left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srghma Sorry, I still have the impression that you are redoing certain proofs rather than just migrating the code to a later version of Lean as suggested in the PR title...

To pick a simple example here, intro. is replaced with intro h; cases h whereas the deprecation warning clearly stated that it should be replaced with nofun.

Can you make the diff even smaller? I have done such migrations before and thus I believe most errors/warnings would only require minimal changes.

Also, I think it'd be better to absorb the changes in the feat: refactor based on review commit into the previous ones.

@srghma

srghma commented May 30, 2026

Copy link
Copy Markdown
Contributor Author

well, improved, but You tell make more minimal. at places I replaced by with ordinary functions bc there is no need to use by and ordinary funcs are easier to understand

@rami3l

rami3l commented May 30, 2026

Copy link
Copy Markdown
Owner

well, improved, but You tell make more minimal. at places I replaced by with ordinary functions bc there is no need to use by and ordinary funcs are easier to understand

@srghma I agree on that particular point, thanks :)

@rami3l rami3l left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, many thanks again :D

@rami3l rami3l merged commit c02a422 into rami3l:master May 30, 2026
2 checks passed
@srghma

srghma commented May 30, 2026

Copy link
Copy Markdown
Contributor Author

Thank You too

can also propose to change to class and/or rename to PDecidable https://github.com/srghma/PLFaLean/blob/learning/Plfl/Init/PDecidable.lean ( I know before You named Decidable' as PDecidable :) )

P.S. will try to implement now everything in mm0 :)

P.P.S. I live in Asia and ...hard to find job, dont know why. I want any - rust, ocaml, blockchain, full stack, etc. If You know some - can please help. If no - ignore :) just trying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants